package com.drug.mingkang.permission.model;

import java.io.Serializable;
import java.util.List;

/**
 * 模块表(PerModule)实体类
 *
 * @author wenchangjian
 * @since 2020-08-13 11:44:35
 */
public class PerModule implements Serializable {
    private static final long serialVersionUID = -45306114975828368L;
    /**
     * 模块ID
     */
    private String moduleId;
    /**
     * 模块ID
     */
    private String modModuleId;
    /**
     * 模块名称
     */
    private String moduleName;
    /**
     * 模块地址
     */
    private String moduleLocation;
    /**
     * 是否有效
     */
    private Integer whetherValid;
    /**
     * 排序
     */
    private Integer rank;
    /**
     * 备注
     */
    private String comments;
    /**
     * 按钮(1 目录  2 菜单  3 按钮)
     */
    private Integer type;
    /**
     * 授权(多个用逗号分隔，如：user:list,user:create)
     */
    private String perms;

    /**
     * 菜单图标
     */
    private String icon;

    //附加属性
    /**
     * 上级模块名称
     */
    private String fatherName;



    /**
     * 它的子级
     */
    private List<PerModule> children;



    /**
     * 首页 需要
     *
     * 模块ID
     */
    private String id;
    /**
     * 模块名称
     */
    private String title;

    /**
     * 模块地址
     */
    private String href;

    /**
     * 是否开启按钮
     */
    private boolean openButton ;


    public boolean isOpenButton() {
        return openButton;
    }

    public void setOpenButton(boolean openButton) {
        this.openButton = openButton;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public List<PerModule> getChildren() {
        return children;
    }

    public void setChildren(List<PerModule> children) {
        this.children = children;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getFatherName() {
        return fatherName;
    }

    public void setFatherName(String fatherName) {
        this.fatherName = fatherName;
    }

    public String getModuleId() {
        return moduleId;
    }

    public void setModuleId(String moduleId) {
        this.moduleId = moduleId;
    }

    public String getModModuleId() {
        return modModuleId;
    }

    public void setModModuleId(String modModuleId) {
        this.modModuleId = modModuleId;
    }

    public String getModuleName() {
        return moduleName;
    }

    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }

    public String getModuleLocation() {
        return moduleLocation;
    }

    public void setModuleLocation(String moduleLocation) {
        this.moduleLocation = moduleLocation;
    }

    public Integer getWhetherValid() {
        return whetherValid;
    }

    public void setWhetherValid(Integer whetherValid) {
        this.whetherValid = whetherValid;
    }

    public Integer getRank() {
        return rank;
    }

    public void setRank(Integer rank) {
        this.rank = rank;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getPerms() {
        return perms;
    }

    public void setPerms(String perms) {
        this.perms = perms;
    }

}